package com.wolfpire.workflow.spring;

import java.util.Map;

import org.jbpm.pvm.internal.model.ExecutionImpl;

import com.wolfpire.system.common.base.service.IBaseHibernateService;
import com.wolfpire.system.model.User;
import com.wolfpire.workflow.om.ProInstance;
import com.wolfpire.workflow.om.Workflow;

public interface ProInstanceService extends IBaseHibernateService<ProInstance, Long> {

	ProInstance addProInstance(Workflow workflow, ExecutionImpl pi,
			Long formId, User user, Map<String, Object> params);

	public void endMyProInstance(Long instanceId);
	
	ProInstance getByForm(Long formId, Long formTypeId);

}
